<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>文件上传</title>
</head>
<body>
<form action="{$Request.url}" method="post" enctype="multipart/form-data">
    <p>
        <label for="pic">头像</label>
        <input type="file" name="pic" id="pic">
    </p>
    <p>
        <input type="submit" value="上传头像">
    </p>


</form>
</body>
</html>